﻿using WeDonekRpc.Helper.Validate;

namespace Basic.FlowRemoteModel.Flow.Model
{
    public class FlowCopy
    {
        [NumValidate("flow.id.error", 1)]
        public long Id { get; set; }

        [NullValidate("flow.name.null")]
        [LenValidate("flow.name.len", 2, 50)]
        public string FlowName { get; set; }

        [NullValidate("flow.type.null")]
        [LenValidate("flow.type.len", 2, 10)]
        public string FlowType { get; set; }

        [LenValidate("flow.remark.len", 0, 100)]
        public string Remark { get; set; }

        /// <summary>
        /// 是否创建新流程
        /// </summary>
        public bool IsCreateNew {  get; set; }
    }
}
